﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Tzync
{
    public partial class WaitUIForm : Form
    {
        private SyncTool syncTool;
     
        public WaitUIForm(SyncTool syncTool)
        {
            this.syncTool = syncTool;
            
            InitializeComponent();
        }

        private void WaitUIForm_Load(object sender, EventArgs e)
        {
            progressBar1.Step = 20;
            sync();
        }

        private void sync()
        {
            syncTool.Sync();
            this.Close();
        }
   
    }
}
